package cmsc427.mw5;

import cmsc427.mw5.R;
import cmsc427.mw5.app.ContactList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MotionHeadsetApp extends Activity {
	
	Button btnShowContacts;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    
        btnShowContacts = (Button) findViewById(R.id.btnShowContacts);
        
        btnShowContacts.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	launchContactList();
            }
        });
        
    }
    
    
    /**
     * 
     */
    protected void launchContactList() {
        Intent i = new Intent(this, ContactList.class);
        startActivity(i);
    }
}